#include "stdafx.h"

#include "BaseLayer.h"

class CTCPLayer
	:public CBaseLayer
{
public:
	CTCPLayer(char *pName);


	virtual BOOL Receive(unsigned char* ppayload);
	virtual BOOL Send(unsigned char* ppayload, int length, unsigned short port);
	

	typedef struct _TCP_HEADER_
	{
		unsigned short Src_Port;
		unsigned short Des_Port;
		unsigned short data_type;
		unsigned short tmp[7];
		unsigned char tcp_data[TCP_DATA_SIZE];
	}	TCP_Header, *PTCP_Header;

protected:
	TCP_Header m_TCPHeader;

};